DEBUG = True
TEMPLATE_DEBUG = DEBUG

# added LOCAL so I can work on this on my home servers
LOCAL = True

ADMINS = (
  ('Jeremy', 'chimpninja@gmail.com'),
)
MANAGERS = ADMINS
DATABASE_ENGINE = 'mysql'

if DEBUG or LOCAL:
  DATABASE_NAME = 'rabidspacemonkeyclan_beta'
else:
  DATABASE_NAME = 'rabidspacemonkeyclan'

DATABASE_USER = 'username'
DATABASE_PASSWORD = 'password'
DATABASE_HOST = 'databasename'

DATABASE_PORT = ''

# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
TIME_ZONE = 'America/Detroit'

# Language code for this installation. All choices can be found here:
# http://www.i18nguy.com/unicode/language-identifiers.html
LANGUAGE_CODE = 'en-us'

SITE_ID = 1

# If you set this to False, Django will make some optimizations so as not
# to load the internationalization machinery.
USE_I18N = True

# Example: "/home/media/media.lawrence.com/"
if DEBUG or LOCAL:
  MEDIA_ROOT = '/home/sites/rabidspacemonkeyclan.com/library_beta/'
else:
  MEDIA_ROOT = '/home/sites/rabidspacemonkeyclan.com/library/'


# URL that handles the media served from MEDIA_ROOT. Make sure to use a
# trailing slash if there is a path component (optional in other cases).
# Examples: "http://media.lawrence.com", "http://example.com/media/"
MEDIA_URL = '/media/'

# Examples: "http://foo.com/media/", "/media/".
ADMIN_MEDIA_PREFIX = '/admin_media/'

# Make this unique, and don't share it with anybody.
SECRET_KEY = ''

# List of callables that know how to import templates from various sources.
TEMPLATE_LOADERS = (
    'django.template.loaders.filesystem.load_template_source',
    'django.template.loaders.app_directories.load_template_source',
#     'django.template.loaders.eggs.load_template_source',
)

TEMPLATE_CONTEXT_PROCESSORS = (
  "django.core.context_processors.auth",
  "django.core.context_processors.debug",
  'django.core.context_processors.request',
  "django.core.context_processors.i18n",
  "django.core.context_processors.media",
)


MIDDLEWARE_CLASSES = (
    'django.middleware.common.CommonMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.middleware.doc.XViewMiddleware',
    'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware',
)

ROOT_URLCONF = 'modules.urls'
if DEBUG or LOCAL:
  TEMPLATE_DIRS = ('/home/sites/rabidspacemonkeyclan.com/www_beta/templates',)
else:
  TEMPLATE_DIRS = ('/home/sites/rabidspacemonkeyclan.com/www/templates',)

INSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.comments',
    'django.contrib.sessions',
    'django.contrib.sites',
    'django.contrib.admin',
    'django.contrib.flatpages',
    'modules.comment_utils',
    'modules.common',
    'modules.bookmarks',
    'modules.blog',
    'modules.tagging',
    'modules.registration',
    'modules.photologue',
)

# for akismet comment-spam protection
AKISMET_API_KEY = ""

# for django-tagging module
FORCE_LOWERCASE_TAGS = True

# for django-registration module - this is how long
# activation keys are valid 
ACCOUNT_ACTIVATION_DAYS = "30"

LOGIN_REDIRECT_URL = '/'

PHOTOLOGUE_DIR = 'photologue'
